home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Draw / TPieObj.c.df < prev    next >
Encoding:
Text File  |  1993-06-18  |  5.7 KB  |  141 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c
  3.  
  4. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 7; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 7)
  5. ** Copyright © 1992 Apple Computer, Inc.
  6.  
  7. ** Copyright © 1992-1993 Apple Computer, Inc.
  8.  
  9.  
  10. Extra lines in 2nd before 11 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ11; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 11:18)
  11. /* You may incorporate this sample code into your applications without
  12. ** restriction, though the sample code has been provided "AS IS" and the
  13. ** responsibility for its operation is 100% yours.  However, what you are
  14. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  15. ** after having made changes. If you're going to re-distribute the source,
  16. ** we require that you make it clear in the source that the code was
  17. ** descended from Apple Sample Code, but that you've made changes. */
  18.  
  19.  
  20.  
  21. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 71:72; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 79:80)
  22.     RgnHandle    rgn;
  23.     short        arcs, arcl, arcs2, arcl2, diff, i, angle;
  24.  
  25.     RgnHandle    rgn, oldClip, newClip;
  26.     short        arcs, arcl, arcs2, arcl2, diff, i, angle, h, w;
  27.  
  28.  
  29. Extra lines in 2nd before 77 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ77; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 85)
  30.     RGBColor    rgb, rgb2;
  31.  
  32.  
  33. Extra lines in 2nd before 83 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ83; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 92)
  34.             TRectObj(hndl, message, data);
  35.  
  36.  
  37. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 95:97; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 105:106)
  38.         case GETBBOXMESSAGE:
  39.         case SECTBBOXMESSAGE:
  40.         case TARGETMESSAGE:
  41.  
  42.         case GETOBJRECTMESSAGE:
  43.         case SECTOBJRECTMESSAGE:
  44.  
  45.  
  46. Extra lines in 2nd before 101 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ101; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 110)
  47.         case COMPAREMESSAGE:
  48.  
  49.  
  50. Extra lines in 2nd before 104 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ104; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 114:117)
  51.         case GETBBOXMESSAGE:
  52.             return(TLineObj(hndl, message, data));
  53.             break;
  54.  
  55.  
  56.  
  57. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 112:113; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 126:127)
  58.                         rct     = mDerefPie(hndl)->arc;
  59.                         where   = click->localEvent.where;
  60.  
  61.                         rct   = mDerefPie(hndl)->arc;
  62.                         where = click->localEvent.where;
  63.  
  64.  
  65. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 152; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 166)
  66.         case SETBBOXMESSAGE:
  67.  
  68.         case SETOBJRECTMESSAGE:
  69.  
  70.  
  71. Extra lines in 2nd before 159 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ159; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 173:175)
  72.             h   = mDerefCommon(hndl)->penHeight;
  73.             w   = mDerefCommon(hndl)->penWidth;
  74.             PenSize(w, h);
  75.  
  76.  
  77. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 164:171; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 181:209)
  78.                         FillArc(&rct, arcs, arcl, (ConstPatternParam)&qd.white);
  79.                         FrameArc(&rct, arcs, arcl);
  80.                         pt = mDerefPie(hndl)->arcBegin;
  81.                         MoveTo(pt.h, pt.v);
  82.                         pt = mDerefPie(hndl)->center;
  83.                         LineTo(pt.h, pt.v);
  84.                         pt = mDerefPie(hndl)->arcEnd;
  85.                         LineTo(pt.h, pt.v);
  86.  
  87.                         GetClip(oldClip = NewRgn());
  88.                         if (newClip = (RgnHandle)TOvalObj(hndl, GETRGNMESSAGE, 0))
  89.                             SetClip(newClip);
  90.                         if (gQDVersion)
  91.                             GetForeColor(&rgb);
  92.                         ForeColor(whiteColor);
  93.                         if (gQDVersion) {
  94.                             rgb2 = mDerefLine(hndl)->contentColor;
  95.                             RGBForeColor(&rgb2);
  96.                         }
  97.                         PaintArc(&rct, arcs, arcl);
  98.                         ForeColor(blackColor);
  99.                         if (gQDVersion) {
  100.                             rgb2 = mDerefLine(hndl)->borderColor;
  101.                             RGBForeColor(&rgb2);
  102.                         }
  103.                         FrameArc(&rct, arcs, arcl);
  104.                         pt = mDerefPie(hndl)->arcBegin;
  105.                         MoveTo(pt.h - (w / 2), pt.v - (w / 2));
  106.                         pt = mDerefPie(hndl)->center;
  107.                         LineTo(pt.h - (w / 2), pt.v - (w / 2));
  108.                         pt = mDerefPie(hndl)->arcEnd;
  109.                         LineTo(pt.h - (w / 2), pt.v - (w / 2));
  110.                         if (gQDVersion)
  111.                             RGBForeColor(&rgb);
  112.                         SetClip(oldClip);
  113.                         DisposeRgn(oldClip);
  114.                         if (newClip)
  115.                             DisposeRgn(newClip);
  116.  
  117.  
  118. Extra lines in 1st before 230 in 2nd (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 192; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line Δ230)
  119.                         PenNormal();
  120.  
  121.  
  122. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line 198:202; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 235:239)
  123.                         MoveTo(pt.h, pt.v);
  124.                         pt = mDerefPie(hndl)->center;
  125.                         LineTo(pt.h, pt.v);
  126.                         pt = mDerefPie(hndl)->arcEnd;
  127.                         LineTo(pt.h, pt.v);
  128.  
  129.                         MoveTo(pt.h - (w / 2), pt.v - (w / 2));
  130.                         pt = mDerefPie(hndl)->center;
  131.                         LineTo(pt.h - (w / 2), pt.v - (w / 2));
  132.                         pt = mDerefPie(hndl)->arcEnd;
  133.                         LineTo(pt.h - (w / 2), pt.v - (w / 2));
  134.  
  135.  
  136. Extra lines in 2nd before 206 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:TPieObj.c"; Line Δ206; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:TPieObj.c"; Line 243)
  137.             PenNormal();
  138.  
  139.  
  140. *** EOF on both files at the same time ***
  141.